# Python Project
# 撰写人：Blackstar
# 算车牌
# 前两位和后两位相同，4位的车号是整数平方
i1 = 0
while (i1 <= 9):
    i1 += 1
    i2 = 0
    while (i2 <= 9):
        i2 += 1
        if (i1 != i2):
            k = (((i1 * 1000 + i1 * 100) + i2 * 10) + i2)
            s = 31
            while (s <= 99):
                s += 1
                if (s * s == k):
                    print(k)
